package cn.bouncyslime.graduationProject.nba.dao;

import cn.bouncyslime.graduationProject.nba.dto.CompetitionDto;
import cn.bouncyslime.graduationProject.nba.dto.PlayerCompetitionDataDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 张一卓
 * @date 2020/5/6 23:42
 **/
@Mapper
public interface CompetitionDao {
    void insertCompetition(CompetitionDto competitionDto);
    void insertPlayerCompetitionData(PlayerCompetitionDataDto playerCompetitionDataDto);
    Integer getNewestCompetitionId();
    List<Map<String, Object>> listEastTeamWins(String season);
    List<Map<String, Object>> listEastTeamLosses(String season);
    List<Map<String, Object>> listWestTeamWins(String season);
    List<Map<String, Object>> listWestTeamLosses(String season);
}
